package com.sa07.bean;

import java.io.Serializable;

/**
 * 自测试项
 * 
 * @author Long.shangbo
 * 
 *         2014-2-18 下午7:32:01
 */
public class TestSubItem implements Serializable {

	private static final long serialVersionUID = -2737395399938519090L;

	/**
	 * 子项id
	 */
	private int subItemId = 0;

	/**
	 * 子项名称
	 */
	private String subItemName = "";

	/**
	 * 命令字
	 */
	private int itemCmd = 0;

	/**
	 * 内容
	 */
	private String content = "";
	
	/**
	 * 超时时间,和父测试项一样
	 */
	private long timeout = 10000;

	/**
	 * 保存该子项的上一个子项的引用
	 */
	private TestSubItem previousSubItem = null;

	public int getSubItemId() {
		return subItemId;
	}

	public void setSubItemId(int subItemId) {
		this.subItemId = subItemId;
	}

	public String getSubItemName() {
		return subItemName;
	}

	public void setSubItemName(String subItemName) {
		this.subItemName = subItemName;
	}

	public int getItemCmd() {
		return itemCmd;
	}

	public void setItemCmd(int itemCmd) {
		this.itemCmd = itemCmd;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public TestSubItem getPreviousSubItem() {
		return previousSubItem;
	}

	public void setPreviousSubItem(TestSubItem previousSubItem) {
		this.previousSubItem = previousSubItem;
	}

	public long getTimeout() {
		return timeout;
	}
	
	public void setTimeout(long timeout) {
		this.timeout = timeout;
	}

	public TestSubItem(int subItemId, String subItemName, int itemCmd,
			String content, long timeout, TestSubItem previousSubItem) {
		super();
		this.subItemId = subItemId;
		this.subItemName = subItemName;
		this.itemCmd = itemCmd;
		this.content = content;
		this.timeout = timeout;
		this.previousSubItem = previousSubItem;
	}

	public TestSubItem() {
		super();
	}
}
